package com.itheima.homework;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class demo08 {
    public static void main(String[] args) throws Exception {
        FileWriter fw1 = new FileWriter("a.txt");
        fw1.write("中国加油");
        fw1.close();

        FileWriter fw2 = new FileWriter("a.txt",true);
        fw2.write("传智播客");
        fw2.close();
    }
}
